package com.hdaccp.foodsales.service.impl;

import com.hdaccp.foodsales.dao.xiaoshoulsDao;
import com.hdaccp.foodsales.entity.Xiaoshouls;
import com.hdaccp.foodsales.service.xiaoshoulsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XiaoshoulsServiceImpl implements xiaoshoulsService {
    @Autowired
    private xiaoshoulsDao xiaoshoulsDao;

    @Override
    public long findTotalCount(String huoname) {
        return xiaoshoulsDao.getTotalCount(huoname);
    }

    @Override
    public List<Xiaoshouls> findAll(String huoname, int offset, int limit) {
        return xiaoshoulsDao.query(huoname,offset,limit);
    }


    @Override
    public int addls(Xiaoshouls xiaoshouls) {
        return xiaoshoulsDao.addls(xiaoshouls);
    }
}
